import request from '@/utils/request'

// 查询index
export function selectAllArchive(){
    return request({
        url: "/archive",
        method: "post",
    })
}

//输入关键字搜素
export function query(data){
    return request({
        url: "/archive/query",
        method: "post",
        data: data
    })
}

//查询archiveManger表格里数据
export function selectAllArchiveManger(data){
    return request({
        url: "/archive/manage/",
        method: "post",
        data:data
    })
}


//查询approveTable表格里数据
export function selectAllApproveTable(data){
    return request({
        url: "/archive/status/",
        method: "post",
        data:data
    })
}

//一键归档接口
export function archive(data){
    return request({
        url: "/archive/archive/",
        method: "post",
        data:data
    })
}

//删除按钮
export function deleteArchive(data){
    return request({
        url: "/archive/deletefile/",
        method: "post",
        data:data
    })
}

//下载压缩文件
export function downloadZip(data){
    return request({
        url:"/archive/downloadzip/" ,
        method:"post",
        responseType: 'arraybuffer',
        data:data,
        timeout:15000,
    })
}

//提交审批
export function submitArchive(data){
    return request({
        url: "/archive/submit/",
        method: "post",
        data:data
    })
}


